package org.grottarossa.template.data;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.grottarossa.template.data.enums.EnumDataType;

/**
 *
 * DataTyps managed by grottarossa.
 *
 * @author Marco Sabatini (sabatini.m@gmail.com)
 * @author Maurizio Farina (maurizio.farina@gmail.com)
 * @author Marco Trischitta (marco.trischitta@gmail.com)
 * @version %I%, %G%
 * @since 1.0
 *
 * */
public class DataType implements Serializable
{	
	private static final long serialVersionUID = -5510266970390121743L;
	/**E' l'identificativo del tipo di dato.*/
	private String key="";
	/**E' l'enumerator che identifica il tipo di dato.*/
	private EnumDataType type;
	/**E' la description del field.*/
	private String description="";
	/**E' la lista dei possibili valori del field.*/
	private List<DataTypeValue> values = new ArrayList<DataTypeValue>();

	public DataType() { }

	public String getKey()
	{
		return key;
	}

	public void setKey(String key)
	{
		this.key = key;
	}

	public EnumDataType getType()
	{
		return type;
	}

	public void setType(EnumDataType type)
	{
		this.type = type;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public List<DataTypeValue> getValues()
	{
		return values;
	}

	public void setValues(List<DataTypeValue> values)
	{
		this.values = values;
	}
}